home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CModelessButtons.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.7 KB  |  71 lines  |  [TEXT/CWIE]

  1. // CModelessButtons.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. class LStream;
  8.  
  9. class LStaticText;
  10. class CInvisibleButton;
  11. class LPushButton;
  12. class LTextGroupBox;
  13. class LBevelButton;
  14. class LCicnButton;
  15. class CPushButton;
  16. class LButton;
  17.  
  18.  
  19. //----------
  20. class CModelessButtons : public LGADialog {
  21. public:    // these comprise the programming interface for using the dialog
  22.     static    CModelessButtons*        CreateModelessButtons        (LCommander*    inSuperCommander,
  23.                                                  CommandT        inCommand);
  24.  
  25. // these functions will be obsoleted
  26. // retained only for backwards compatibility
  27.  
  28. public:    // these comprise the implementation
  29.     enum { class_ID = 'Mod5' };
  30.  
  31.                         CModelessButtons        (LStream*    inStream);
  32.     virtual                ~CModelessButtons();
  33.  
  34.     virtual void        ListenToMessage        (MessageT    inMessage,
  35.                                              void        *ioParam);
  36.  
  37.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  38.                                              void        *ioParam = nil);
  39.     virtual void        FindCommandStatus    (CommandT    inCommand,
  40.                                              Boolean    &outEnabled,
  41.                                              Boolean    &outUsesMark,
  42.                                              Char16        &outMark,
  43.                                              Str255        outName);
  44.  
  45. protected:
  46.     static    void        RegisterClass();
  47.     virtual void        FinishCreateSelf();
  48.     virtual void        DataChanged        (long        inDataID);
  49.  
  50. protected:
  51.     static Boolean        sIsRegistered;
  52.     CommandT            mCommand;
  53.  
  54.     CInvisibleButton*        mInvisibleButton;
  55.     LPushButton*        mStandardButton;
  56.     LPushButton*        mDefaultButton;
  57.     LBevelButton*        mButtonButton;
  58.     LBevelButton*        mNextButton;
  59.     LBevelButton*        mNext2Button;
  60.     LCicnButton*        mRightButton;
  61.     CPushButton*        mLightButton;
  62.     LButton*        mRight2Button;
  63.     CPushButton*        mButton2Button;
  64.     LButton*        mRight3Button;
  65.     CPushButton*        mRect3DButton;
  66.     LPushButton*        mLeftIconButton;
  67.     LPushButton*        mRightIconButton;
  68.     CPushButton*        mTitledPICTButton;
  69.  
  70. };
  71.